<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            margin-left: 20px;
            margin-right: 20px;
            margin-bottom: 20px;
            margin-top: 20px;

            border: dashed 2px red;
            padding: 20px;

            box-sizing: border-box;

            text-align: center;
            line-height: 256px;
        }
    </style>
</head>

<body>
    <div>123</div>
</body>

</html>